package com.softWang.system.controller.vo.systemMenu;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class SystemMenuEditParam {

    @ApiModelProperty(value = "主键id")
    @NotNull(message = "id不能为空")
    private Long id;

    @ApiModelProperty(value = "名称，长度为60")
    @NotBlank(message = "mname不能为空")
    @Size(max = 60,message="mname长度为60")
    private String mname;

    @ApiModelProperty(value = "父id")
    @NotNull(message = "pid不能为空")
    private Long pid;

    @ApiModelProperty(value = "类型{分类:1,菜单:2,按钮:3}")
    @NotNull(message = "type不能为空")
    private Integer type;

    @ApiModelProperty(value = "页面路由或按钮标识，长度为60")
    @Size(max = 60,message="mkey长度为60")
    private String mkey;

    @ApiModelProperty(value = "后台权限标识如system:user:query，长度为60")
    @Size(max = 60,message="permission长度为60")
    private String permission;

    @ApiModelProperty(value = "菜单图标，长度为60")
    @Size(max = 60,message="icon长度为60")
    private String icon;

    @ApiModelProperty(value = "排序值，越小越靠前")
    private Integer sort;

}